import  httpService  from "./http.service";
class RoomService {
  async getRooms(pageNumber, pageSize) {
    const url = `room/rooms/${pageNumber}/${pageSize}`;
    return httpService.get(url);
  }

  async createRoom(user) {
    return httpService.post("room/create", user);
  }

  async updateRoom(user) {
    return httpService.put("room/update", user);
  }

  async deleteRoom(userId) {
    return httpService.delete(`room/rooms/${userId}`);
  }
}

export const roomService = new RoomService();